package com.wjm.lambda;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById();
    }

    private void findViewById() {
        Button btn = findViewById(R.id.btn);
        btn.setOnClickListener((v) -> {
            Toast.makeText(this, "你好我是Lambda", Toast.LENGTH_SHORT).show();
        });
    }
}
